<template>
  <!-- 检查管理 -->
  <div class="content content4">
    <div class="content-header">
      <div class="content-header-title">{{ baseData.startPageTitle.leftFour }}</div>
      <div class="content-more" @click="handleToAssetStatusDetail">查看更多</div>
    </div>
    <div class="content-wrap">
      <div class="subject-intelligent-ctrl">
        <div class="tab-bar-item" :class="{ active: toggleAssetNumber === 1 }" @click="toggleAssetNumber = 1">监管检查</div>
        <div class="tab-bar-item" :class="{ active: toggleAssetNumber === 2 }" @click="toggleAssetNumber = 2">街区检查</div>
        <div class="tab-bar-item" :class="{ active: toggleAssetNumber === 3 }" @click="toggleAssetNumber = 3">协管检查</div>
      </div>
      <collegePieStatus />
    </div>
  </div>
  <!-- 最新检查 -->
  <div class="content content5">
    <div class="content-header">
      <div class="content-header-title">{{ baseData.startPageTitle.leftFive }}</div>
    </div>
    <div class="content-wrap">
      <recentLineAdd />
    </div>
  </div>
  <!-- 消费评价 -->
  <div class="content content6">
    <div class="content-header">
      <div class="content-header-title">{{ baseData.startPageTitle.leftSix }}</div>
      <div class="content-more" @click="handleToAssetIssueDetail">查看更多</div>
    </div>
    <div class="content-wrap">
      <recentIssue />
    </div>
  </div>
</template>
<script setup>
import { ref } from "vue";
import baseData from "@/utils/baseData.js";
import { useRouter } from "vue-router";
import collegePieStatus from "@/view/home/AppendCharts/collegePieStatus/index.vue";
import recentLineAdd from "@/view/home/AppendCharts/recentLineAdd/index.vue";
import recentIssue from "@/view/home/AppendCharts/recentissue/index.vue";
const router = useRouter();

//asset状态切换
const toggleAssetNumber = ref(1);


function handleToAssetStatusDetail() {
  router.push({ name: "assetStatusPage" });
}
function handleToAssetIssueDetail() {
  router.push({ name: "assetIssuePage" });
}
</script>
<style scoped>
/* 从 index.vue 复制的样式开始 */
.content {
  flex-grow: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.content .content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content .content-header .content-header-title {
  width: 10.416667vw;
  height: 1.666667vw;
  line-height: 1.25vw;
  padding-left: 0.520833vw;
  font-size: 1.25vw;
  font-family: homeTime;
  color: #fff;
  text-align: left;
  text-shadow: 0 0 0.364583vw rgba(58, 178, 231, 0.67);
  letter-spacing: 0.104167vw;
  background: url("@/assets/home/titleBase.png") 0 0 no-repeat;
  background-size: 100% 100%;
}

.content .content-wrap {
  width: 100%;
  flex: 1;
  padding: 0.3vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.content-wrap .subject-intelligent-ctrl {
  display: flex;
  align-items: center;
}

.subject-intelligent-ctrl .tab-bar-item {
  width: 4.6875vw;
  height: 1.25vw;
  color: #7dacc2;
  font-size: 0.833333vw;
  border: 1px solid rgba(58, 178, 231, 0.3);
  text-align: center;
  cursor: pointer;
}

.tab-bar-item.active {
  background: url("@/assets/tab.png") no-repeat;
  background-position: center;
  background-size: cover;
  color: #38d1e9;
}

.content .content-header .content-more {
  padding-right: 1.145833vw;
  font-size: 0.729167vw;
  color: #54e5fc;
  background: url("@/assets/home/gobtnicon.png") 100% no-repeat;
  background-size: 1.041667vw 0.9375vw;
  cursor: pointer;
}

/* 从 index.vue 复制的特定内容样式 */
.content4,
.content5,
.content6 {
  height: 10%;
}

.content6 .content-warp {
  overflow: hidden;
}

/* 从 index.vue 复制的样式结束 */
</style>